
import request from '@/utils/request'
import { parseStrEmpty } from "@/utils/tools";

export function findPageList(query) {
  return request({
    url: '/api/admin/exam/manage/findPageList',
    method: 'post',
    params: query
  })
}


/**  保存更新*/
export function saveOrEdit(query) {
  return request({
    url: '/api/admin/exam/manage/saveOrEdit',
    method: 'post',
    data: query
  })
}

/**  查询*/
export function findById(query) {
  return request({
    url: '/api/admin/exam/manage/findById',
    method: 'post',
    data: query
  })
}

// 根据角色ID查询部门树结构
export function deptTreeSelect(roleId) {
  return request({
    url: '/api/admin/exam/manage/deptTree/' + roleId,
    method: 'get'
  })
}

/**  查询*/
export function findSysUserByDeptId(query) {
  return request({
    url: '/api/admin/exam/manage/findSysUserByDeptId',
    method: 'post',
    data: query
  })
}


/**  获取参与考试人员 */
export function findExamUsers(query) {
  return request({
    url: '/api/admin/exam/manage/findExamUsers',
    method: 'post',
    data: query
  })
}



/**  保存更新*/
export function deleteExamById(id) {
  return request({
    url: '/api/admin/exam/manage/delete/' + id,
    method: 'post',
  })
}
